#ifndef PARALLEL_H
#define PARALLEL_H

#include <QDialog>
#include <QtGui>
#include "ycapi.h"
#include "readthread.h"
#include <QLabel>
#include <QLineEdit>

namespace Ui {
    class Parallel;
}

class Parallel : public QDialog {
    Q_OBJECT
public:
    Parallel(QWidget *parent = 0);
    ~Parallel();
    void closeEvent(QCloseEvent * event);
    void SetMainBacklight();
    Ycapi *ycapi;
    ReadThread *m_readThread0;
    ReadThread *m_readThread1;
    ReadThread *m_readThread2;
    ReadThread *m_readThread3;
    int threadFlag;
protected:
    void changeEvent(QEvent *e);

private:
    Ui::Parallel *ui;



private slots:

    void DataAvailable(unsigned char* level,unsigned char ioNum);
    void on_close_clicked();
    void on_setAllL_clicked();
    void on_setAllH_clicked();
    void on_setPolling_clicked();
    void on_readIn_clicked();
    void on_setIntr_clicked();
    void on_readInBlock_clicked();
};

#endif // PARALLEL_H
